/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * PnlEdittag.java
 *
 * Created on 23-Jan-2010, 14:41:49
 */

package rfid;

/**
 *
 * @author pisan
 */
public class PnlEdittag extends javax.swing.JPanel {

    /** Creates new form PnlEdittag */
    public PnlEdittag() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        btnTagSave = new javax.swing.JButton();
        btnTagDel = new javax.swing.JButton();
        btnTagCancel = new javax.swing.JButton();
        lblHeadProDes = new javax.swing.JLabel();
        jPanel2 = new javax.swing.JPanel();
        cmbProType = new javax.swing.JComboBox();
        txtProName = new javax.swing.JTextField();
        txtProCode = new javax.swing.JTextField();
        txtProUnit = new javax.swing.JTextField();
        lblTypePro = new javax.swing.JLabel();
        lblProName = new javax.swing.JLabel();
        lblProCode = new javax.swing.JLabel();
        lblProUnit = new javax.swing.JLabel();
        lblNewTag = new javax.swing.JLabel();
        txtNewTag = new javax.swing.JTextField();

        setMaximumSize(new java.awt.Dimension(700, 500));
        setMinimumSize(new java.awt.Dimension(700, 500));
        setPreferredSize(new java.awt.Dimension(700, 500));
        setLayout(new java.awt.BorderLayout());

        jPanel1.setBackground(new java.awt.Color(100, 170, 180));
        jPanel1.setMaximumSize(new java.awt.Dimension(700, 80));
        jPanel1.setMinimumSize(new java.awt.Dimension(700, 80));
        jPanel1.setPreferredSize(new java.awt.Dimension(700, 80));

        btnTagSave.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/save_30x30.gif"))); // NOI18N

        btnTagDel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/del_30x30.gif"))); // NOI18N

        btnTagCancel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/cancel_30x30.gif"))); // NOI18N

        lblHeadProDes.setFont(new java.awt.Font("Tahoma", 1, 16));
        lblHeadProDes.setText("ข้อมูลสินค้า");

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblHeadProDes)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(btnTagSave, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnTagDel, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnTagCancel, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(536, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(10, 10, 10)
                .addComponent(lblHeadProDes)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(btnTagSave, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnTagDel, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnTagCancel, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)))
        );

        add(jPanel1, java.awt.BorderLayout.PAGE_START);

        jPanel2.setMaximumSize(new java.awt.Dimension(700, 500));

        cmbProType.setFont(new java.awt.Font("Tahoma", 0, 12));
        cmbProType.setMaximumSize(new java.awt.Dimension(180, 25));
        cmbProType.setMinimumSize(new java.awt.Dimension(180, 25));
        cmbProType.setPreferredSize(new java.awt.Dimension(180, 25));

        txtProName.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtProName.setMaximumSize(new java.awt.Dimension(180, 25));
        txtProName.setMinimumSize(new java.awt.Dimension(180, 25));
        txtProName.setPreferredSize(new java.awt.Dimension(180, 25));
        txtProName.setRequestFocusEnabled(false);

        txtProCode.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtProCode.setMaximumSize(new java.awt.Dimension(180, 25));
        txtProCode.setMinimumSize(new java.awt.Dimension(180, 25));
        txtProCode.setPreferredSize(new java.awt.Dimension(180, 25));
        txtProCode.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtProCodeActionPerformed(evt);
            }
        });

        txtProUnit.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtProUnit.setMaximumSize(new java.awt.Dimension(180, 25));
        txtProUnit.setMinimumSize(new java.awt.Dimension(180, 25));
        txtProUnit.setPreferredSize(new java.awt.Dimension(180, 25));

        lblTypePro.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblTypePro.setText("ประเภทสินค้า :");

        lblProName.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblProName.setText("ชื่อสินค้า :");

        lblProCode.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblProCode.setText("รหัสสินค้า :");

        lblProUnit.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblProUnit.setText("หน่วย :");

        lblNewTag.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblNewTag.setText("รหัสสินค้าใหม่ :");

        txtNewTag.setMaximumSize(new java.awt.Dimension(180, 25));
        txtNewTag.setMinimumSize(new java.awt.Dimension(180, 25));
        txtNewTag.setPreferredSize(new java.awt.Dimension(180, 25));

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addComponent(lblProCode)
                        .addComponent(lblProName)
                        .addComponent(lblProUnit)
                        .addComponent(lblTypePro))
                    .addComponent(lblNewTag))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(txtNewTag, javax.swing.GroupLayout.PREFERRED_SIZE, 192, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(txtProCode, javax.swing.GroupLayout.DEFAULT_SIZE, 192, Short.MAX_VALUE)
                        .addComponent(cmbProType, 0, 192, Short.MAX_VALUE)
                        .addComponent(txtProName, javax.swing.GroupLayout.DEFAULT_SIZE, 192, Short.MAX_VALUE)
                        .addComponent(txtProUnit, javax.swing.GroupLayout.DEFAULT_SIZE, 192, Short.MAX_VALUE)))
                .addGap(401, 401, 401))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblNewTag)
                    .addComponent(txtNewTag, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtProCode, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblProCode, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cmbProType, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblTypePro))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtProName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblProName))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtProUnit, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblProUnit, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(251, Short.MAX_VALUE))
        );

        add(jPanel2, java.awt.BorderLayout.CENTER);
    }// </editor-fold>//GEN-END:initComponents

    private void txtProCodeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtProCodeActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_txtProCodeActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnTagCancel;
    private javax.swing.JButton btnTagDel;
    private javax.swing.JButton btnTagSave;
    private javax.swing.JComboBox cmbProType;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JLabel lblHeadProDes;
    private javax.swing.JLabel lblNewTag;
    private javax.swing.JLabel lblProCode;
    private javax.swing.JLabel lblProName;
    private javax.swing.JLabel lblProUnit;
    private javax.swing.JLabel lblTypePro;
    private javax.swing.JTextField txtNewTag;
    private javax.swing.JTextField txtProCode;
    private javax.swing.JTextField txtProName;
    private javax.swing.JTextField txtProUnit;
    // End of variables declaration//GEN-END:variables

}
